<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="payment-id"></th>
            <th>业务单号</th>
            <th>应付款日期</th>
            <th>审批状态</th>
            <th>付款日期</th>
            <th>户名</th>
            <th>收款账号</th>
            <th>付款方式</th>
            <th>付款状态</th>
            <th>付款账号</th>
            <th>应付金额</th>
            <th>已付金额</th>
            <th>手续费</th>
            <th>税</th>
            <th>付款人</th>
            <th>提供发票</th>
            <th>业务类型</th>
            <th>费用说明</th>
            <th>备注</th>
            <th><div class="text-left">操作</div></th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td><input type="checkbox" class="payment-id" name="payment_id[]" value="{$item.payment_id}"></td>
                <td class="copy-text">{$item.ref_sn}</td>
                <td>{$item.biz_date}</td>
                <td>{$item.check_status}</td>
                <td>{$item.real_date|substr=0,10}</td>
                <td>{$item.bank_user}</td>
                <td>{$item.account}</td>
                <td>{$item.pay_type?:''}</td>
                <td>{$item.pay_status}</td>
                <td class="text-left copy-text">{$item.act_account}</td>
                <td>{$item.act_money|abs}</td>
                <td>{$item.real_money|abs}</td>
                <td>{$item.service_charge|abs}</td>
                <td>{$item.tax|abs}</td>
                <td>{$item.payUser?$item.payUser.nickname:''}</td>
                <td>
                    <span class="{$item.is_invoice?'text-yellow':'text-muted'}"><i class="fa fa-circle"></i> {$item.is_invoice?'是':'否'}</span>
                </td>
                <td>{$item.ref_type}</td>
                <td>{$item.cost_desc}</td>
                <td class="text-left">{$item.remark}</td>
                <td class="text-left">
                    <a href="{:url('info', ['payment_id'=>$item['payment_id']])}" width-form="80%" height-form="80%" class="ajax-form layui-btn layui-btn-xs layui-btn-normal">查看</a>
                    {if \app\common\model\JobFlowModule::isCheckIng($item)}
                    <a item="{$item.payment_id}" class="layui-btn layui-btn-xs check-job-flow">审批</a>
                    {/if}
                    {if \app\common\model\JobFlowModule::isCheckFinish($item) && $item->getData('pay_status') == $pay_status_none}
                    <a href="{:url('/fac/payment/save', ['payment_id' => $item.payment_id])}" class="ajax-form layui-btn-xs layui-btn-warm layui-btn">添加付款</a>
                    {/if}
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="20">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>